package com.lei.mingyuemall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lei.common.utils.PageUtils;
import com.lei.mingyuemall.product.entity.CategoryEntity;
import com.lei.mingyuemall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author leitao
 * @email leitao@gmail.com
 * @date 2020-09-13 10:44:51
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithtree();

    void removeMenuByIds(List<Long> asList);

    Long[] findCatelogPath(Long catelogId);

    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getLevel1Categorys();

    Map<Object, List<Catelog2Vo>>  getCatalogJson();

}

